import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { WelcomeComponent } from './views/welcome/welcome.component';
import { RoutingComponent } from './views/getway/routing/routing.component';
import { RoutingDetailComponent } from './views/getway/routing-detail/routing-detail.component';
import { GroupComponent } from './views/getway/group/group.component';
import { PluginComponent } from './views/getway/plugin/plugin.component';
import { AppListComponent } from './views/getway/app-list/app-list.component';
const routes: Routes = [
  {
    path: '',
    redirectTo: 'welcome',
    pathMatch: 'full',
  },
  {
    path: 'welcome',
    component: WelcomeComponent,
  },
  {
    path: 'getway',
    children: [
      {
        path: '',
        redirectTo: 'routing',
        pathMatch: 'full',
      },
      {
        path: 'routing',
        component: RoutingComponent,
      },
      {
        path: 'routingDetail',
        component: RoutingDetailComponent,
      },
      {
        path: 'plugin',
        component: PluginComponent,
      },
      {
        path: 'group',
        component: GroupComponent,
      },
      {
        path: 'appList',
        component: AppListComponent,
      },
    ],
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
